package com.mallsystem.common.service;

import com.mallsystem.common.bean.Addr;
import com.mallsystem.common.exception.AllException;

import java.util.List;

public interface UserAddrService {
    //添加
    int insert(Addr addr);
    //根据id删除
    int delete(Integer id,Integer userId) throws AllException;
    //修改
    int update(Addr addr,Integer userId) throws AllException;
    //根据条件查询
    List<Addr> selectByCondition(Addr condition);
    //根据Id查询
    Addr selectById(Integer id);
}
